<template>
  <div>
    <div :class="{ dialog: true, nomore: type == 0 }">
      <div class="number">
        <span>任务编号: {{ misson.number }}</span>
      </div>
      <slot name="head"></slot>
      <div class="start">
        <span class="leftS"><i class="iconfont icon-qidian"></i></span
        ><span class="right">{{ misson.start }}</span>
        <div class="line">
          <i class="iconfont icon-xuxian"></i>
        </div>
      </div>
      <div>
        <span class="leftZ"><i class="iconfont icon-zhongdian"></i></span
        ><span class="right">{{ misson.end }}</span>
      </div>
      <div class="bLine" v-if="type == '1'"></div>
    </div>
  </div>
</template>
<script>
export default {
  name: "SDialog",
  props: {
    misson: Object,
    type: {
      type: String,
      default: "0", //0默认 1底部有额外的
    },
  },
  data() {
    return {};
  },
  created() {},
  computed: {},
  methods: {},
};
</script>
<style lang='less'  scoped>
.dialog {
  width: 345px;
  height: 158px;
  position: absolute;
  left: 15px;
  top: 15px;
  background: #ffffff;
  border-radius: 10px 10px 0px 0px;
  padding: 20px;
  color: #818181;
  .start {
    position: relative;
    .line {
      position: absolute;
      left: -6px;
      top: 23px;
      z-index: 22;
      transform: rotate(90deg);
      .iconfont {
        font-size: 35px;
      }
    }
  }
  .leftS {
    color: #000;
    position: relative;
    i {
      font-size: 22px;
    }
  }
  .leftZ {
    color: #ef4f3f;
    i {
      font-size: 22px;
    }
  }
  .right {
    margin-left: 12px;
  }
  div {
    display: flex;
    margin-bottom: 20px;
    .number {
      font-size: 12px;
    }
    span {
      font-size: 14px;
    }
  }
}
.nomore {
  border-bottom: 0;
  border-radius: 10px;
}
.bLine {
  width: 305px;
  height: 1px;
  background-color: #ccc;
  margin: 0 20px;
  position: absolute;
  bottom: -20px;
  left: 0;
}
</style>
